Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/applicationinsights-common

Package Overview
Dependencies
Maintainers
2
Versions
584
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-common

Microsoft Application Insights Common JavaScript Library

  • 3.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @microsoft/applicationinsights-common?

@microsoft/applicationinsights-common is a package that provides common functionalities and types used by the Application Insights JavaScript SDK. It includes telemetry types, enums, and utility functions that are essential for tracking and monitoring web applications.

What are @microsoft/applicationinsights-common's main functionalities?

Telemetry Types

This feature provides various telemetry types such as EventTelemetry and ExceptionTelemetry, which are used to log different kinds of telemetry data.

const { EventTelemetry, ExceptionTelemetry } = require('@microsoft/applicationinsights-common');

const eventTelemetry = new EventTelemetry('myEvent');
const exceptionTelemetry = new ExceptionTelemetry(new Error('Something went wrong'));

console.log(eventTelemetry);
console.log(exceptionTelemetry);

Enums

This feature includes enums like SeverityLevel, which can be used to categorize the severity of telemetry data.

const { SeverityLevel } = require('@microsoft/applicationinsights-common');

console.log(SeverityLevel.Critical);
console.log(SeverityLevel.Warning);

Utility Functions

This feature provides utility functions such as Util.isArray and Util.isString, which are helpful for type checking and other common operations.

const { Util } = require('@microsoft/applicationinsights-common');

const isArray = Util.isArray([1, 2, 3]);
const isString = Util.isString('hello');

console.log(isArray); // true
console.log(isString); // true

Other packages similar to @microsoft/applicationinsights-common

FAQs

Package last updated on 30 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc